extends Node2D

@export var FireBallScene:PackedScene
@onready var player = $Player

func _unhandled_input(event):
	if event.is_action_pressed("click_left"):
		var fireball:Fireball = FireBallScene.instantiate()
		fireball.global_position = player.global_position
		fireball.target_position = get_global_mouse_position()
		print(fireball.global_position)
		print(fireball.target_position)
		add_child(fireball)
